


public class ControlUnit {
	

	public static void main(String[] args) {
		
		try {
	
			
			Global.initialize();
			
			Thread.sleep(1000);
			Producer producer = new Producer();
			
		
			
			
			//Global.gui.setVisible(true);
			
			producer.startThread();
			Thread.sleep(3000);
			Consumer consumer = new Consumer();
			consumer.startThread();
			
			consumer.thread.join();
			producer.thread.join();
			 
			
//			
//			while(true)
//			{
//				System.out.println(Global.state);
//				Thread.sleep(100);
//			}
			System.out.println("BAHAR AA GAYE");
		}

		catch (Exception e) {

			e.printStackTrace();
		}
	

	}

}
